package com.yonyou.gmmc.service.dealer.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.yonyou.gmmc.common.annotation.OracleDb;
import com.yonyou.gmmc.service.dealer.model.TtTestdrive;

import tk.mybatis.mapper.common.Mapper;

@OracleDb
public interface TtTestdriveMapper extends Mapper<TtTestdrive> {
    
    public int saveDrive(@Param("ttTestdrive") TtTestdrive ttTestdrive);
    
    public String selectDriveId();
    
    public List<TtTestdrive> selectDriveList(Map<String,Object> query);
    
    public List<TtTestdrive> selectDriveListByManager(Map<String,Object> query);
    
    public List<TtTestdrive> selectDriveListByCounselor(Map<String,Object> query);

    public List<TtTestdrive> selectDriveListByEngineer(Map<String,Object> query);
    
    public List<TtTestdrive> selectDriverInfo(@Param("driveId") String driveId);
    
    public List<TtTestdrive> remind();
    
    public int cancel(@Param("driveId") String driveId);
    
    public int start(@Param("driveId") String driveId);
    
    public int driveAgreement(@Param("driveId") String driveId);
    
    public int driveFinished(@Param("driveId") String driveId);
    
    public List<TtTestdrive> oemList();
}